package operation;

import result.Score;
import result.ScoreList;

public class ShowOperation implements IOperation {
    @Override
    public void work(ScoreList scoreList) {
        System.out.println("打印成绩:");
        int size = scoreList.getSize();
        for(int i=0;i<size;i++){
            Score score = scoreList.getScores(i);
            System.out.println(score);
        }
    }
}
